package com.gmail.at.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

import com.gmail.at.model.Station;

public interface StationDAO extends PagingAndSortingRepository<Station, Integer> {
	
	@Query("select s from Station s where s.stationName =:stationName")
    public Station findByName(@Param("stationName") String stationName);

}
